package org.ting.book.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

//处理时间
public class DateUtils {
    public static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
    public static String dateFormat(Date date) {
        if(date == null) {
            return null;
        }
        return format.format(date);
    }
}
